package mmoon.mmoonstory.items;

import mmoon.mmoonstory.interfaces.HasModel;
import mmoon.mmoonstory.interfaces.InitItem;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import javax.annotation.Nullable;
import java.util.List;

public class ItemHelloWorld extends Item implements InitItem, HasModel {
    public static final String ObjID = "hello_world";

    public ItemHelloWorld() {
        super();
        this.setMaxStackSize(1);
        this.init(ObjID);
    }

    @Override
    @SideOnly(Side.CLIENT)
    public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) {
        tooltip.add("Hello world, but in minecraft!");
    }
}
